__author__ = 'Ich'
import pygame

class Shot(pygame.sprite.Sprite):
    global screen
    x = 0
    y = 0
    speed = 0
    # Graphic Sprite Constructor.
    def __init__(self,x,y):
        # Call the parent class (Sprite) constructor
        pygame.sprite.Sprite.__init__(self)
        # Load the image
        self.image = pygame.image.load("bullet2.png").convert()
        self.image = pygame.transform.scale(self.image,(10,42))
        # Set our transparent color
        #self.image.set_colorkey((255,255,255))
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y

    # def draw(self, screen):
    #     pygame.draw.rect(screen, (255, 0, 255), pygame.Rect(self.x, self.y, 50, 50))
    #
    # def startmoving(self,speed):
    #     self.speed = speed
    #     while self.speed != 0:
    #         self.x += speed
    #
    # def stopmoving(self,speed):
    #     self.speed = 0




